package com.gzq.factorymethod.practice2;

import java.lang.reflect.InvocationTargetException;

public class TinDaoMain {
	public static void main(String[] args)
			throws InstantiationException, IllegalAccessException,
			IllegalArgumentException, InvocationTargetException,
			NoSuchMethodException, SecurityException {
		IBaGuaLuFactory bGuaLuFactory = new BaGuaLuFactoryImp();
		YellowPeopleImp createPeople = bGuaLuFactory.createPeople(YellowPeopleImp.class);
		createPeople.race();
		WhitePeopleImpl createPeople2 = bGuaLuFactory.createPeople(WhitePeopleImpl.class);
		createPeople2.race();
		
	}
}
